package com.ruoyi.system.domain;

import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModelProperty;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 红包发送记录对象 app_red_packet_send
 *
 * @author ruoyi
 * @date 2024-08-08
 */
public class AppRedPacketSend extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * $column.columnComment
     */
    private Long id;

    /**
     * 发送用户id
     */
    @Excel(name = "发送用户id")
    private Long userId;

    /**
     * 类型，0：一对一红包，1：群红包
     */
    @Excel(name = "类型，0：一对一红包，1：群红包")
    private Integer type;

    /**
     * 群红包类型，0：普通红包，1：拼手气红包，2、口令红包
     */
    @Excel(name = "群红包类型，0：普通红包，1：拼手气红包，2、口令红包")
    private Integer groupType;

    /**
     * 总金额
     */
    @Excel(name = "总金额")
    private BigDecimal money;

    /**
     * 祝福语
     */
    @Excel(name = "祝福语")
    private String greeting;

    /**
     * 红包个数
     */
    @Excel(name = "红包个数")
    private Integer shareNum;

    /**
     * 剩余个数
     */
    @Excel(name = "剩余个数")
    private Integer stock;

    /**
     * 红包所剩金额
     */
    @Excel(name = "红包所剩金额")
    private BigDecimal remainMoney;

    /**
     * 状态，0：领取中，1：已领完，2：剩余已退回
     */
    @Excel(name = "状态，0：领取中，1：已领完，2：剩余已退回")
    private Integer status;

    /**
     * 乐观锁版本号
     */
    @Excel(name = "乐观锁版本号")
    private Integer version;

    /**
     * 红包口令
     */
    @Excel(name = "红包口令")
    private String command;

    /**
     * 群id
     */
    @Excel(name = "群id")
    private String groupId;

    @TableField(exist = false)
    @ApiModelProperty("用户名")
    private String userName;

    @TableField(exist = false)
    @ApiModelProperty("头像")
    private String headImg;

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getHeadImg() {
        return headImg;
    }

    public void setHeadImg(String headImg) {
        this.headImg = headImg;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Long getUserId() {
        return userId;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public Integer getType() {
        return type;
    }

    public void setGroupType(Integer groupType) {
        this.groupType = groupType;
    }

    public Integer getGroupType() {
        return groupType;
    }

    public void setMoney(BigDecimal money) {
        this.money = money;
    }

    public BigDecimal getMoney() {
        return money;
    }

    public void setGreeting(String greeting) {
        this.greeting = greeting;
    }

    public String getGreeting() {
        return greeting;
    }

    public void setShareNum(Integer shareNum) {
        this.shareNum = shareNum;
    }

    public Integer getShareNum() {
        return shareNum;
    }

    public void setStock(Integer stock) {
        this.stock = stock;
    }

    public Integer getStock() {
        return stock;
    }

    public void setRemainMoney(BigDecimal remainMoney) {
        this.remainMoney = remainMoney;
    }

    public BigDecimal getRemainMoney() {
        return remainMoney;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Integer getStatus() {
        return status;
    }

    public void setVersion(Integer version) {
        this.version = version;
    }

    public Integer getVersion() {
        return version;
    }

    public void setCommand(String command) {
        this.command = command;
    }

    public String getCommand() {
        return command;
    }

    public void setGroupId(String groupId) {
        this.groupId = groupId;
    }

    public String getGroupId() {
        return groupId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("createTime", getCreateTime())
                .append("userId", getUserId())
                .append("type", getType())
                .append("groupType", getGroupType())
                .append("money", getMoney())
                .append("greeting", getGreeting())
                .append("shareNum", getShareNum())
                .append("stock", getStock())
                .append("remainMoney", getRemainMoney())
                .append("status", getStatus())
                .append("version", getVersion())
                .append("command", getCommand())
                .append("groupId", getGroupId())
                .toString();
    }
}
